import request from '@/utils/request'

// 查询入驻联系列表
export function listShopContact(query) {
  return request({
    url: '/system/shopContact/list',
    method: 'get',
    params: query
  })
}

// 查询入驻联系详细
export function getShopContact(id) {
  return request({
    url: '/system/shopContact/' + id,
    method: 'get'
  })
}

// 新增入驻联系
export function addShopContact(data) {
  return request({
    url: '/system/shopContact',
    method: 'post',
    data: data
  })
}

// 修改入驻联系
export function updateShopContact(data) {
  return request({
    url: '/system/shopContact',
    method: 'put',
    data: data
  })
}

// 删除入驻联系
export function delShopContact(id) {
  return request({
    url: '/system/shopContact/' + id,
    method: 'delete'
  })
}
